/**
 * Created by user on 2015/9/24.
 */

module.exports = function (app) {

    var secondHand = require('../../controllers/mis/market/secondHand-controller');
    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/secondHandList/:page/:size', secondHand.secondHandList);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/getGoodsCategory', secondHand.getGoodsCategory);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/deleteSecondHand', secondHand.deleteSecondHand);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/updateSecondHand', secondHand.updateSecondHand);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/getReplyList', secondHand.getReplyList);

    app.get('/rest/' + RESTFullServiceVersion + '/mis/market/exportSecondHand', secondHand.exportSecondHand);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/handleLevel', secondHand.handleLevel);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/handleSale', secondHand.handleSale);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/secondHandReplyList/:page/:size', secondHand.secondHandReplyList);

    app.post('/rest/' + RESTFullServiceVersion + '/mis/market/deleteSecondHandReply', secondHand.deleteSecondHandReply);

}